<template>
	<view class="explain">
		<view class="explainbag" @click="cloneClick()"></view>
		<view class="explainbody">
			<view class="explainbody-view">
				<view class="explainbody-view-title">{{info.explain}}</view>
				
				
				<view class="explainbody-view-flex">
					<view class="explainbody-view-flex-1" @click="cloneClick()">关闭</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['info'],
		watch:{
			info(e){
				this.info = e;
			}
		},
		methods :{
			cloneClick(){
				this.$emit('explainChange',0);
			}
		}
	}
</script>

<style lang="less">
	.explain {
		color: #333;
		.explainbody {
			width: 600rpx;
			min-height: 140rpx;
			border-radius: 30rpx;
			background-color: #fff;
			position: fixed;
			top: 0;left: 0; right: 0;
			margin: auto;
			margin-top: 20%;
			z-index: 1000;
			padding-bottom: 30rpx;
			.explainbody-view {
				padding: 30rpx;
				margin-top: 20rpx;
				
				.explainbody-view-title {
					text-align: justify;
					text-indent:2em;
					font-size: 38rpx;
					
				}
				
				.explainbody-view-flex {
					display: flex;
					margin-top: 40rpx;
					view {
						height: 90rpx;
						line-height: 90rpx;
						flex : 1;
						text-align: center;
						border-radius: 10rpx;
					}
					.explainbody-view-flex-1 {
						background-color: #3eb8ff;
						// border: 2rpx solid #3eb8ff;
						color: #fff;
						
					}
					
					
				}
			}
		}
		.explainbag {
			width: 100%;
			height: 100%;
			position: fixed;
			top: 0;
			z-index: 990;
			background-color: #0c0c0c61;
		}
	}
</style>